package com.mrjy.share.bo;

import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import com.mrjy.common.entity.DistributorInfo;
import com.mrjy.share.dto.DistributorInfoDTO;


public interface IDistributorInfoBo {

	Object queryDistributorInfoPage(DistributorInfoDTO dto, HttpSession session);

	Object txAdd(DistributorInfo info, HttpSession session);

	Object txEdit(DistributorInfo info, HttpSession session);

	Object queryById(DistributorInfo info);

	Object queryPageByDistributorType(DistributorInfoDTO dto,HttpSession session);

	Object txUpdatePostalStatus(DistributorInfo info, HttpSession session);

	Object txUpgradeToDistributor(DistributorInfo info);

	Object isPromoterByUserId(DistributorInfo info);
	/**
	 * 检查分销商是否过期，过期修改相关的信息
	 * @return
	 */
	Object txCheckDistributorStatusExpired();

	Object txUpdateDistributors(DistributorInfo info, HttpSession session);

	Object txDeleteDistributors(DistributorInfo info);

	Object exportExl(DistributorInfoDTO dto, HttpServletResponse response,HttpSession session) ;

	Object exportExl2(DistributorInfoDTO dto, HttpServletResponse response, HttpSession session);


}
